User Identification in Events
How to Cross-Reference Information to Identify the User
In many operational scenarios, identifying the user responsible for an event is essential for analysis, contextual actions, and auditing. Below, we list possible approaches to perform this identification based on secure technical practices compatible with privacy guidelines.
1 - Using remote_id:
This function expects a String parameter that represents the remote id associated with the device. This identifier is a customizable value you can use to manage or label events for a specific user or context.
We strongly recommend not using sensitive information in the remote_id. Instead, use unique identifiers that are properly encrypted or obfuscated. For example, using the user's session-id is a safer approach that helps ensure security and privacy when identifying devices.
Setting the user remote_id:
void main() async {
await GroupLinkSDKPlugin().setRemoteId("YOUR_REMOTE_ID");
runApp(const MyApp());
}
2 - Getting the user given userID
The userID is an optional String identifier that is unique to each user within the Group Link network. By utilizing this ID, you can identify when a particular user approaches one of our devices.
void main() async {
String? userID = await GroupLinkSDKPlugin().getUserId();
runApp(const MyApp());
}